<template>
    <div>
        <son v-for="item in list" :key="item.id" :item="item" />
    </div>
</template>

<script>
import Son from '../components/son.vue'
export default {

    components: {
        Son
    },
    data() {
        return {
            list: []
        };
    },

    mounted() {
        this.getlist()
    },

    methods: {
        async getlist() {
            this.$http({
                url: '/api/getHaoKanVideo',
                params: {
                    page: 1,
                    size: 10
                }
            }).then(res => {
                this.list = res.data.result.list
                console.log(this.list);
            })
        }
    },
};
</script>

<style lang="scss" scoped>
</style>